package 练习;

public class demo02 {
    String name;
    int age;

    public demo02() {
        System.out.println("调用无参构造");
    }

    public demo02(String name, int age) {
        this.name = name;
        this.age = age;
        // System.out.println("调用了有参构造");
        // System.out.println("我是："+name+"今年"+age+"岁");
    }
}
